package com.hexacta.hrs.sandbox.meetings.service.impl;

import org.springframework.transaction.annotation.Transactional;

import com.hexacta.hrs.sandbox.meetings.data.MentorDao;
import com.hexacta.hrs.sandbox.meetings.data.ThemeDAO;
import com.hexacta.hrs.sandbox.meetings.model.Theme;
import com.hexacta.hrs.sandbox.meetings.service.ThemeService;

/**
 * Administra los Mentores.
 * @author ncortinez
 */

@Transactional
public class ThemeServiceImpl implements ThemeService {
	
	private MentorDao mentorDAO;
	private ThemeDAO themeDAO;
	
	public ThemeServiceImpl() {
		this.setMentorDAO(new MentorDao());
	}

	public void update(Object o) {
		mentorDAO.saveOrUpdate(o);
		return;
	}

	public Theme findThemeById(Long id){
		return this.getThemeDAO().findById(id);
	}

	public MentorDao getMentorDAO() {
		return mentorDAO;
	}

	public void setMentorDAO(MentorDao mentorDAO) {
		this.mentorDAO = mentorDAO;
	}

	public ThemeDAO getThemeDAO() {
		return themeDAO;
	}

	public void setThemeDAO(ThemeDAO themeDAO) {
		this.themeDAO = themeDAO;
	}
	
}